#ifndef CLIENTMONITOR_H
#define CLIENTMONITOR_H
#include <QObject>
#include <QTcpServer>
#include "connection.h"
class ClientMonitor:public QTcpServer
{
    Q_OBJECT
public:
    explicit ClientMonitor(int port,QObject *parent = 0);

signals:
    void newConnection(Connection *connection);
    void notify(QString ip,int code);
protected:
    void incomingConnection(int socketDescriptor);
};

#endif // CLIENTMONITOR_H
